package com.shoulei.designpattern.commandPattern;

/**
 * @ClassName:SellStock
 * @Descrition:
 * @Author:shoulei
 * @Date:2019/4/14 17:19
 * @Verson:
 */
public class SellStock implements Order {
    private Stock abcStock;

    public SellStock(Stock abcStock) {
        this.abcStock = abcStock;
    }

    @Override
    public void execute() {
        abcStock.sell();
    }
}
